import service from '@/utils/request'

// @Tags QmCost
// @Summary 创建qmCost表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmCost true "创建qmCost表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /qmCost/createQmCost [post]
export const createQmCost = (data) => {
  return service({
    url: '/qmCost/createQmCost',
    method: 'post',
    data
  })
}

// @Tags QmCost
// @Summary 删除qmCost表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmCost true "删除qmCost表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmCost/deleteQmCost [delete]
export const deleteQmCost = (params) => {
  return service({
    url: '/qmCost/deleteQmCost',
    method: 'delete',
    params
  })
}

// @Tags QmCost
// @Summary 批量删除qmCost表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除qmCost表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmCost/deleteQmCost [delete]
export const deleteQmCostByIds = (params) => {
  return service({
    url: '/qmCost/deleteQmCostByIds',
    method: 'delete',
    params
  })
}

// @Tags QmCost
// @Summary 更新qmCost表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmCost true "更新qmCost表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /qmCost/updateQmCost [put]
export const updateQmCost = (data) => {
  return service({
    url: '/qmCost/updateQmCost',
    method: 'put',
    data
  })
}

// @Tags QmCost
// @Summary 用id查询qmCost表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.QmCost true "用id查询qmCost表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /qmCost/findQmCost [get]
export const findQmCost = (params) => {
  return service({
    url: '/qmCost/findQmCost',
    method: 'get',
    params
  })
}

// @Tags QmCost
// @Summary 分页获取qmCost表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取qmCost表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /qmCost/getQmCostList [get]
export const getQmCostList = (params) => {
  return service({
    url: '/qmCost/getQmCostList',
    method: 'get',
    params
  })
}
